package ogr.ktjy.demo.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import org.ktjy.demo.entity.SysUser;
import org.ktjy.demo.mapper.SysUserMapper;
import org.ktjy.demo.service.ISysUserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author lwj
 * @since 2024-03-07
 */
@Service
public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> implements ISysUserService {


    @Autowired
    SysUserMapper sysUserMapper;


    @Override
    public SysUser getUserByUsrName(String UserName, String usrPassword) {
        return sysUserMapper.selectByUserNameAndPassword(UserName, usrPassword);
    }
}
